import request from '@/utils/request'

// 查询报修申请列表
export function listWbRepairApply(query) {
  return request({
    url: '/wb/wbRepairApply/list',
    method: 'get',
    params: query
  })
}

// 查询报修申请详细
export function getWbRepairApply(id) {
  return request({
    url: '/wb/wbRepairApply/' + id,
    method: 'get'
  })
}

// 新增报修申请
export function addWbRepairApply(data) {
  return request({
    url: '/wb/wbRepairApply',
    method: 'post',
    data: data
  })
}

// 修改报修申请
export function updateWbRepairApply(data) {
  return request({
    url: '/wb/wbRepairApply',
    method: 'put',
    data: data
  })
}

// 删除报修申请
export function delWbRepairApply(id) {
  return request({
    url: '/wb/wbRepairApply/' + id,
    method: 'delete'
  })
}
